package com.xci.sys.entity;

import com.xci.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
/**
 * 系统错误日志
 * @author 吕艳阳
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "系统错误日志")
public class SysErrorLog extends BaseEntity {
	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键", required = true, position = 1)
	private String id;

	/**
	 * 请求参数
	 */
	@ApiModelProperty(value = "请求参数", position = 2)
	private String reqParam;

	/**
	 * 请求地址
	 */
	@Length(max = 500, message = "请求地址长度不能超过{max}")
	@ApiModelProperty(value = "请求地址", position = 3)
	private String reqUrl;

	/**
	 * 错误消息
	 */
	@ApiModelProperty(value = "错误消息", position = 4)
	private String msg;

	/**
	 * 错误详细信息
	 */
	@ApiModelProperty(value = "错误详细信息", position = 5)
	private String details;

	/**
	 * 操作人信息
	 */
	@ApiModelProperty(value = "操作人信息", position = 6)
	private String operateUser;

	/**
	 * 操作时间
	 */
	@ApiModelProperty(value = "操作时间", position = 7)
	private Date operateDateTime;
}
